package cn.tedu.spring.scope;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestOrders {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext acac = new AnnotationConfigApplicationContext("cn/tedu/spring/scope");
        Orders orders1 = acac.getBean(Orders.class);
        System.out.println("orders1 = " + orders1);

        Orders orders2 = acac.getBean(Orders.class);
        System.out.println("orders2 = " + orders2);
    }
}
